package com.niiwoo.civet.trade.dto.common;

import com.niiwoo.civet.trade.enums.ProjectDynamicEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**极速借
 * Created by bincun on 2017/12/15.
 */
@Setter
@Getter
public class ProjectDynamicDTO implements Serializable {
    private static final long serialVersionUID = 5761420582751379435L;
    //借款用户ID(借款人或者投资人)
    private String userId;
    //标的号
    private Long projectId;
    //相关id （还款计划ID或者投资订单ID ）
    private Long relationId;

    private TradeTypeEnum tradeTypeEnum;

    private ProjectDynamicEnum projectDynamicEnum;

    /**
     * 如果描述内容有参数占位符，需要动态将数据依次加入paramsList
     */
    private List<String> paramsList;



    @AllArgsConstructor
    @Getter
    public enum TradeTypeEnum{
        BORROWER((byte)1),//借款相关
        GUARANTEE((byte)2),//担保相关
        INVEST((byte)3),//投资相关
        REPAYMENT((byte)4);//还款记录展示
        private Byte value;
    }
}
